#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<limits.h>
#include"stringhandler.h"

//string
//char string_buffer[LINE_MAX];
//function returns strings with white spaces
char* pgets(){
	char ch;
	int i = 0;
		//temporary.this is for test purposes only
		printf("Give string\n");
			while(ch != '\n' || string_buffer[i] == LINE_MAX){
				ch=getchar();
					string_buffer[i] = ch;
					i++;
			}
			//end tag for string
				string_buffer[i] = '\0';

			return &(string_buffer[0]);
}
/*
int main(int argc, char* argv[]){
	char *str;
	str = pgets();
	printf("string with spaces: %s\n",str);
	return 0;
}
*/
